import request from '@/utils/request';

export function selectAll() {
    return request({
        url: `/MaintenanceRecord/buchangzz/selectAll`,
        method: 'get'
    });
}

export function addBuchangzz(data) {
    return request({
        url: `/MaintenanceRecord/buchangzz/add`,
        method: 'post',
        data: data
    });
}

export function updateBuchangzz(bcid, data) {
    return request({
        url: `/MaintenanceRecord/buchangzz/update/${bcid}`,
        method: 'put',
        data: data
    });
}

export function deleteBuchangzz(bcid) {
    return request({
        url: `/MaintenanceRecord/buchangzz/delete/${bcid}`,
        method: 'delete'
    });
}

export function downloadBuchangzz() {
    return request({
        url: `/MaintenanceRecord/buchangzz/download`,
        method: 'GET',
        responseType: 'blob'
    });
}